package com.bajiao.admin;


import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import com.bajiao.common.util.FastJsonHelper;
import com.bajiao.entity.user.User;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Date;


@SpringBootTest
public class Itest {

    @Test
    public void test1(){
        String s = DateUtil.beginOfDay(new Date()).toString();
        System.out.println(s);
    }


    @Test
    public void test3(){
        DateTime d1 = DateUtil.parseDateTime("2024-03-03 18:44:33");
        DateTime d2 = DateUtil.parseDateTime("2024-03-03 18:44:34");
        DateTime d3 = DateUtil.parseDateTime("2024-03-03 18:44:34");
        System.out.println(ObjectUtil.equal(d1,d2));
        System.out.println(ObjectUtil.equal(d3,d2));
    }
}
